﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="web.ClientMgr.Default" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    
      function pageLoad() {
      }
    
    </script>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        </style>
    </head>
<body>
    <form id="form1" runat="server">
    <div style="border: 1px dotted #C0C0C0; position: absolute; top: 40px; left: 0px; width: 200px; height: 200px;  " 
        id="div2">
        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" 
            EnableScriptGlobalization="True">
        </asp:ToolkitScriptManager>
       
    </div>
    <div style="border: 1px dotted #C0C0C0; position: absolute; top: 240px; left: 0px; width: 200px; height: 400px;  " 
        id="div3">
    <asp:UpdatePanel ID="UpdatePanel_ClientList" runat="server">
    <ContentTemplate>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSource1" Width="200px" AllowSorting="True" 
            Height="200px" CellPadding="4" ForeColor="#333333" GridLines="None" 
            DataKeyNames="ClientID" Font-Size="Small" ShowFooter="True" 
            onselectedindexchanged="GridView1_SelectedIndexChanged">
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <Columns>
                <asp:CommandField ShowSelectButton="True" >
                <ControlStyle Width="35px" />
                <FooterStyle Width="35px" />
                <HeaderStyle Width="35px" />
                <ItemStyle Width="35px" />
                </asp:CommandField>
                <asp:BoundField DataField="ClientName" HeaderText="客户名称" 
                    SortExpression="ClientName" />
                <asp:BoundField DataField="ClientNO" HeaderText="编码" 
                    SortExpression="ClientNO" >
                <ControlStyle Width="35px" />
                <FooterStyle Width="35px" />
                <HeaderStyle Width="35px" />
                <ItemStyle Width="35px" />
                </asp:BoundField>
                <asp:BoundField DataField="ClientID" HeaderText="ClientID" ReadOnly="True" 
                    SortExpression="ClientID" Visible="False" />
            </Columns>
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <EditRowStyle BackColor="#999999" />
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:pmsConnectionString %>" 
            SelectCommand="SELECT [ClientName], [ClientNO] , [ClientID] FROM [ClientOfClient]" 
            ProviderName="<%$ ConnectionStrings:pmsConnectionString.ProviderName %>">
        </asp:SqlDataSource>
   </ContentTemplate>
    </asp:UpdatePanel>
    </div>
    <div style="border: 1px dotted #C0C0C0; position: absolute; top: 40px; height: 600px; width: 600px; left: 200px;" 
        id="div4" >
       <asp:UpdatePanel ID="UpdatePanel_ClientInfo" runat="server" 
            UpdateMode="Conditional">
    <ContentTemplate>   
    <div id="client1">
        <table class="style1">
            <tr>
                <td>
                    <asp:Label ID="Label3" runat="server" Text="客户名称*"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtClientName" runat="server" CssClass="txtbox" 
                        ReadOnly="True"></asp:TextBox>
                </td>
                <td>
                    <asp:Label ID="Label4" runat="server" Text="性别"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtPersonSex" runat="server" CssClass="txtbox" 
                        ReadOnly="True"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label5" runat="server" Text="出身日期"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtPersonBirthday" runat="server" CssClass="txtbox" 
                        ReadOnly="True"></asp:TextBox>
                    <asp:CalendarExtender ID="txtPersonBirthday_CalendarExtender" runat="server" 
                        Enabled="False" Format="yyyy-MM-dd" PopupButtonID="txtPersonBirthday" 
                        TargetControlID="txtPersonBirthday" TodaysDateFormat="yyyy-MM-dd" 
                        CssClass="cal_Theme1" DaysModeTitleFormat="yyyy,MMMM">
                    </asp:CalendarExtender>
                </td>
                <td>
                    <asp:Label ID="Label6" runat="server" Text="民族"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtPersonNation" runat="server" CssClass="txtbox" 
                        ReadOnly="True"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label7" runat="server" Text="文化程度"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtPersonEduDegree" runat="server" CssClass="txtbox" 
                        ReadOnly="True"></asp:TextBox>
                </td>
                <td>
                    <asp:Label ID="Label8" runat="server" Text="婚姻状况"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtPersonMerriageState" runat="server" CssClass="txtbox" 
                        ReadOnly="True"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label9" runat="server" Text="身份证号码"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtPersonIDCardNO" runat="server" CssClass="txtbox" 
                        ReadOnly="True"></asp:TextBox>
                </td>
                <td>
                    <asp:Label ID="Label10" runat="server" Text="证件有效期"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtPersonCardActiveDate" runat="server" CssClass="txtbox" 
                        ReadOnly="True"></asp:TextBox>
                    <asp:CalendarExtender ID="txtPersonCardActiveDate_CalendarExtender" 
                        runat="server" CssClass="cal_Theme1" DaysModeTitleFormat="yyyy,MMMM" 
                        Enabled="False" Format="yyyy-MM-dd" 
                        TargetControlID="txtPersonCardActiveDate" 
                        TodaysDateFormat="yyyy-MMMM-dd" PopupButtonID="txtPersonCardActiveDate">
                    </asp:CalendarExtender>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label11" runat="server" Text="户籍"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtPersonRegisterPlace" runat="server" CssClass="txtbox" 
                        ReadOnly="True"></asp:TextBox>
                </td>
                <td>
                    <asp:Label ID="Label12" runat="server" Text="户籍地址"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtPersonIDCardAddress" runat="server" CssClass="txtbox" 
                        ReadOnly="True"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label13" runat="server" Text="其他证件名称"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtPersonOtherCardName" runat="server" CssClass="txtbox" 
                        ReadOnly="True"></asp:TextBox>
                </td>
                <td>
                    <asp:Label ID="Label14" runat="server" Text="其他证件号"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtPersonOtherCardNo" runat="server" CssClass="txtbox" 
                        ReadOnly="True"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label15" runat="server" Text="工作单位"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtPersonCorpName" runat="server" CssClass="txtbox" 
                        ReadOnly="True"></asp:TextBox>
                </td>
                <td>
                    <asp:Label ID="Label16" runat="server" Text="职业"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtPersonProfession" runat="server" CssClass="txtbox" 
                        ReadOnly="True"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label17" runat="server" Text="联系电话"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtClientCurTel" runat="server" CssClass="txtbox" 
                        ReadOnly="True"></asp:TextBox>
                </td>
                <td>
                    <asp:Label ID="Label18" runat="server" Text="现居住地址"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtClientCurAddr" runat="server" CssClass="txtbox" 
                        ReadOnly="True"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label19" runat="server" Text="是否户主"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtPersonIsHouseMaster" runat="server" CssClass="txtbox" 
                        ReadOnly="True"></asp:TextBox>
                </td>
                <td>
                    <asp:Label ID="Label20" runat="server" Text="客户编码"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtClientNO" runat="server" CssClass="txtbox" 
                        ReadOnly="True"></asp:TextBox>
                </td>
            </tr>
        </table>    
        <table class="style1">
        <tr>
        <td>
            <asp:Label ID="Label21" runat="server" Text="备注说明"></asp:Label>
            </td>
        <td>
            <asp:TextBox ID="txtClientDesp" runat="server" Height="22px" Width="417px" 
                CssClass="txtbox" ReadOnly="True"></asp:TextBox>
            </td>
        </tr>
        </table>
    </div>
        </ContentTemplate>
           <Triggers>
               <asp:AsyncPostBackTrigger ControlID="GridView1" 
                   EventName="SelectedIndexChanged" />
               <asp:AsyncPostBackTrigger ControlID="Button_Save" EventName="Click" />
           </Triggers>
        </asp:UpdatePanel>
    </div>
    <div id="div1" 
        style="position: absolute; top: 0px; left: 0px; height: 40px; width: 800px">
        <asp:UpdatePanel ID="UpdatePanel_CMD" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <table border="0" class="style1" cellpadding="0" cellspacing="0">
                    <tr>
                        <td style="width: 60px">
                            <asp:Button ID="Button_add" runat="server" Height="40px" 
                                onclick="Button_Add_Click" Text="新增" Width="60px" 
                                CssClass="btn3_mouseout" />
                        </td>
                        <td style="width: 60px">
                            <asp:Button ID="Button_Modify" runat="server" Height="40px" 
                                onclick="Button_Modify_Click" Text="修改" Width="60px" 
                                CssClass="btn3_mouseout" />
                          </td>
                        <td style="width: 60px">
                            <asp:Button ID="Button_Save" runat="server" CssClass="btn3_mouseout" 
                                Height="40px" onclick="Button_Save_Click" Text="保存" Width="60px" />
                        </td>
                        <td>
                            <asp:Button ID="Button_Cancel" runat="server" CssClass="btn3_mouseout" 
                                Enabled="False" Height="40px" onclick="Button_Cancel_Click" Text="取消" 
                                Width="60px" />
                        </td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>
